package homeWork.Three.demo3;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-30
 * Time: 17:11
 */
public class TestDemo {

//提示用户输入一个整数，再提示用户输入一个符号。在屏幕上输出该整数个这样的符号。

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int number = scanner.nextInt();
        System.out.println("请输入一个符号");
        String str = scanner.next();
        for(int i =0;i<number;++i){
            System.out.print(str + " ");
        }
    }

}
